/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gui;

import java.awt.*;
import javax.swing.*;

/**
 *
 * @author demian
 */
public class GuiUtils {
    public static void centrarEnPantalla(JFrame frame) {
        Dimension s, c = Toolkit.getDefaultToolkit().getScreenSize();
        s = frame.getSize();
        frame.setLocation((c.width - s.width) / 2, (c.height - s.height) / 2);        
    }
}
